.class Lcom/waiqin365/lightapp/visit/bd;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/view/cd;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)Lcom/waiqin365/lightapp/view/CustomerSelectMultView_vertical;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView_vertical;->e()Ljava/util/List;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)Lcom/waiqin365/lightapp/view/CustomerSelectMultView_vertical;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView_vertical;->e()Ljava/util/List;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->c()V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)Lcom/waiqin365/lightapp/visit/b/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/f;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;)Lcom/waiqin365/lightapp/visit/b/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/f;->notifyDataSetChanged()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/bd;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitAddRouteActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    goto :goto_0
.end method
